import { createRouter, createWebHistory } from 'vue-router'
import LoginPage from '@/view/LoginPage.vue'
import RegisterPage from '@/view/RegisterPage.vue'
import ForgetPage from '@/view/ForgetPage.vue'
import AppPage from '@/view/AppPage.vue'

const routes = [
    {
        path: '/Login',
        name: 'Login',
        component: LoginPage
    },
    {
        path: '/Register',
        name: 'Register',
        component: RegisterPage
    },
    {
        path: '/Reset',
        name: 'Reset',
        component: ForgetPage
    },
    {
        path: '/App',
        name: 'App',
        component: AppPage
    },
    {
        path: '/',
        redirect: '/Login'
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;